package dfs;

import org.junit.Test;

import java.util.Arrays;
import java.util.List;

public class FourSum18 {

    @Test
    public void test() {
        fourSum(new int[]{1,0,-1,0,-2,2}, 0);
        fourSum(new int[]{2,2,2,2,2}, 8);
    }


    public List<List<Integer>> fourSum(int[] nums, int target) {
        Arrays.sort(nums);
        List<List<Integer>> results = ThreeSum15.kSum(nums, 0, 4, target);
        System.out.format("nums: %s, target: %d, results: %s\n", Arrays.toString(nums), 0, results);
        return results;
    }
}
